# for ele in iterable

for i in range(0, 10):  # C语言: for(int i = 0; i < 10; i++)
    # in 后面必须是可迭代的对象
    # 可迭代的对象举例：str，list，dict，set，集合，range
    # range内置类，可用于生成指定区间的整数序列
    print(i)

for i in [1, 2, 3, 4]:
    print(i)

for ch in 'abc':
    print(ch)

z = 0
for i in range(1, 101):
    z += i
print(z)
